import { RouteRecordRaw } from 'vue-router';
import { Layout } from '@/router/constant';
import { SlidersTwotone } from '@vicons/antd';
import { renderIcon } from '@/utils/index';

const routes: Array<RouteRecordRaw> = [
  {
    path: '/warehouse',
    name: 'warehouse',
    redirect: '/warehouse/basic-list',
    component: Layout,
    meta: {
      title: '采出入库管理',
      icon: renderIcon(SlidersTwotone),
      sort: 7,
    },
    children: [
      {
        path: 'list',
        name: 'warehouse',
        meta: {
          title: '采出入库管理',
        },
        component: () => import('@/views/warehouse/basicList/index.vue'),
      },
    ],
  },
];

export default routes;
